package com.vic.sb20.entity;

import com.vic.sb20.annotation.MyPet;
import org.springframework.stereotype.Component;

/**
 * 使用@MyPet注解的bean
 * @author victor
 */
@MyPet
@Component
public class Dog implements Animal {
    @Override
    public void say(String word) {
        System.out.println("汪汪");
    }
}